package com.loft.controller;

import android.widget.ImageView;
import com.loft.comm.util.LogCenter;
import com.loft.model.face.BitmapCenter;

/**
 * @author
 * @class_name BitmapWindowController.java
 * @create_date 2012/05/24
 * @version 1.0.0
 */
public class BitmapCenterController {
	public static final String TAG = "BitmapCenterController";
	private BitmapCenter _bitmaBitmapCenter;

	public BitmapCenterController(String className, String savePath) {
		try {
			Class<?> theClass = Class.forName(className);
			this._bitmaBitmapCenter = (BitmapCenter) theClass.getConstructor(
					String.class).newInstance(savePath);
		} catch (Exception e) {
			LogCenter.getInstance().error(TAG,
					"------------->>>" + e.toString());
		}

	}

	public void bitmapDownload(String url, ImageView imageView, String imageName) {
		_bitmaBitmapCenter.loadBitmap(url, imageView, imageName);
	}
}
